package com.second.app.thread.join.sleep_unreleaselock;

/**
 * @author gyz
 * @date 2021/1/28 14:28
 */
public class A extends Thread {
    private B b;

    public A(B b) {

        this.b = b;
    }

    @Override
    public void run() {
        try {
            synchronized (b) {
                b.start();
                Thread.sleep(6000);
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
